package com.ufox.service;

import com.ufox.entity.Result;
import com.ufox.entity.Staff;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ufox.entity.StaffPassword;
import com.ufox.req.PasswordREQ;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 员工信息表 服务类
 * </p>
 *
 * @author 优狐科技-www.hbufox.com
 * @since 2022-05-31
 */
@Service
public interface IStaffService extends IService<Staff> {

//    int updatePasswordById(StaffPassword staffPassword);

    /**
     * 校验原密码是否正确
     * @param req
     * @return
     */
    Result checkPassword(PasswordREQ req);
    /**
     * 更新修改后的新密码
     * @param req
     * @return
     */
    Result updatePassword(PasswordREQ req);

}
